<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <link rel="stylesheet" href="css/style.css" type="text/css"/>
		 <link rel="stylesheet" href="css/lhkh.css" type="text/css"/>
        <title>Fashion shop</title>
    </head>
    <body>
        <div id="wrapper">
            <?php include 'template/header.php' ?>
            <div id="main">
                <?php include'template/sidebar.php' ?>
                <div id="content">
                    <div id="products">
                        <?php
                        include 'Connect_db.php';
                        if (isset($_REQUEST['cate_id'])) {
                            $cate_id = $_REQUEST['cate_id'];
                            $pro = getProductCate($cate_id);
                            $count = checkProductcate($cate_id);
                            $cate_name = getCate($cate_id);
                            ?>
                            <div class="paging">
                                <div class="first">
                                    <h2><?php echo $cate_name['cate_name'] ?></h2>
                                </div>
                            </div><!---END #paging--->
                            <p class="product-title" style="color:red; font-weight: bold; margin-top: 10px; font-family: arial;font-size: 14px;">Có tất cả <?php echo $count ?> sản phẩm</p>
                            <?php
                            foreach ($pro as $key => $value) {
                                ?>
                                <div class="product">
                                    <div class="product-img"><a href="product-detail.php?pro_id=<?php echo $value['id'] ?>"><img src="<?php echo $value['pro_img']; ?>" alt="sp1"/></a></div>
                                    <div class="product-name"><a href="product-detail.php?pro_id=<?php echo $value['id'] ?>"><?php echo $value['pro_name'] ?></a></div>
                                    <div class="product-id"><p>Mã số:<?php echo $value['id'] ?></p></div>
                                    <div class="product-price-old"><strike>Giá cũ: <?php echo number_format($value['pro_price_old']) ?>đ</strike></div>
                                    <div class="product-price"><span>Giá mới: <?php echo number_format($value['pro_price']) ?>đ</span></div>
                                </div><!---END .product-->
                                <?php
                            }
                        }
                        ?>
                    </div><!---END #products--->
					<div id="conten1">
							<h1>Hợp tác cùng Fashion</h1>
						<div id="detail">
							<div class="image">
								<img src="public/templates/admin/images/interface/hoptac.png">
							</div>
							<div id="conten-detail">
								<ul>
									<li style="color:#5790C6;">Bạn có nguồn hàng uy tín.</li>
									<li style="color:#E48291;">Bạn muốn kinh doanh??</li>
									<li style="color:red;">Bạn muốn thêm thu nhập??</li>
									<li style="list-style:none;"> Hãy hợp tác cùng Thoi trang Fashion Shop.</li>
								<UL>
								<P style="font-size:25px;text-align:center; margin-top:5px;">ĐT phòng kinh doanh:0988844909</P>
							</div>
						</div>
					</div>
					<div id="conten2">
							<h1>Liên hệ</h1>
							<div class="image">
								<img src="public/templates/admin/images/interface/phone.png">
							</div>
						<div id="detail2">
							<UL>
								<LI >
									<Font COLOR="RED";>Địa chỉ:&nbsp; &nbsp; </FONT>23-Lý Thường Kiệt-Hà Nội
								</LI>
								<LI>
									<Font COLOR="RED";>SĐT phòng tư vấn KH:&nbsp; &nbsp;</FONT>0988889990.
								</LI>
								<LI>
									<Font COLOR="RED";>Email:&nbsp; &nbsp;</FONT>FashionShop@gmail.com
								</LI>
								<LI>
									<Font COLOR="RED";>Website:&nbsp; &nbsp;</FONT>Fashion Shop
								</LI>
							</UL>
						</div>
					</div>
                </div><!---END #content--->
					</div>
            <!--END #main-->
            <?php include 'template/footer.php' ?>
        </div><!---END #wrapper--->
    </body>
</html>
